﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 加入分组参数
    /// </summary>
    public class JoinGroupParam
    {
        /// <summary>
        /// 拉群openid
        /// </summary>
        [JsonProperty("invite_code"), JsonPropertyName("invite_code")]
        [Required(ErrorMessage = nameof(ErrorResultEnum.InviteCodeIsNull))]
        public string InviteCode { get; set; }

        /// <summary>
        /// 入群openid
        /// </summary>
        [JsonProperty("join_open_id"), JsonPropertyName("join_open_id")]
        [Required(ErrorMessage = nameof(ErrorResultEnum.WxOpenIdIsNull))]
        public string JoinOpenId { get; set; }
    }
}
